package com.arethusa;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class Administratie extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JTabbedPane masterDataTabbedPane = null;
	private JPanel importPanel = null;
	private JPanel verenigingPanel = null;
	private JPanel programmaPanel = null;
	private JPanel programmaNummersPanel = null;
	private JPanel leeftijdscategoriePanel = null;
	private JPanel leeftijdsBepalingenPanel = null;
	private JPanel funktiePanel = null;
	/**
	 * This is the default constructor
	 */
	public Administratie() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
		gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH;
		gridBagConstraints1.gridy = 3;
		gridBagConstraints1.weightx = 1.0;
		gridBagConstraints1.weighty = 1.0;
		gridBagConstraints1.gridx = 0;
		this.setLayout(new GridBagLayout());
		this.setSize(670, 684);
		this.setSize(new java.awt.Dimension(564,684));
		this.add(getMasterDataTabbedPane(), gridBagConstraints1);
	}

	/**
	 * This method initializes masterDataTabbedPane	
	 * 	
	 * @return javax.swing.JTabbedPane	
	 */
	private JTabbedPane getMasterDataTabbedPane() {
		if (masterDataTabbedPane == null) {
			masterDataTabbedPane = new JTabbedPane();
			masterDataTabbedPane.addTab("Im-/Exporteren", null, getImportPanel(), null);
			masterDataTabbedPane.addTab("Programma", null, getProgrammaPanel(), null);
			masterDataTabbedPane.addTab("ProgrammaNrs", null, getProgrammaNummersPanel(), null);
			masterDataTabbedPane.addTab("Vereniging", null, getVerenigingPanel(), null);
			masterDataTabbedPane.addTab("Categorien", null, getLeeftijdscategoriePanel(), null);
			masterDataTabbedPane.addTab("Leeftijdsbepalingen", null, getLeeftijdsBepalingenPanel(), null);
			masterDataTabbedPane.addTab("Funktie", null, getFunktiePanel(), null);
		}
		return masterDataTabbedPane;
	}

	/**
	 * This method initializes verenigingPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getImportPanel() {
		if (importPanel == null) {
			importPanel = new Backup();
		}
		return importPanel;
	}

	/**
	 * This method initializes verenigingPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getVerenigingPanel() {
		if (verenigingPanel == null) {
			verenigingPanel = new OnderhoudVerenigingen();
		}
		return verenigingPanel;
	}

	/**
	 * This method initializes programmaPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getProgrammaPanel() {
		if (programmaPanel == null) {
			programmaPanel = new OnderhoudProgramma();
		}
		return programmaPanel;
	}

	/**
	 * This method initializes programmaNummersPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getProgrammaNummersPanel() {
		if (programmaNummersPanel == null) {
			programmaNummersPanel = new OnderhoudProgrammaNummers();
		}
		return programmaNummersPanel;
	}

	/**
	 * This method initializes leeftijdscategoriePanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getLeeftijdscategoriePanel() {
		if (leeftijdscategoriePanel == null) {
			leeftijdscategoriePanel = new OnderhoudCategorie();
		}
		return leeftijdscategoriePanel;
	}

	/**
	 * This method initializes leeftijdscategoriePanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getFunktiePanel() {
		if (funktiePanel == null) {
			funktiePanel = new OnderhoudFunktie();
		}
		return funktiePanel;
	}

	/**
	 * This method initializes leeftijdsBepalingenPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getLeeftijdsBepalingenPanel() {
		if (leeftijdsBepalingenPanel == null) {
			leeftijdsBepalingenPanel = new OnderhoudLeeftijdsbepalingen();
		}
		return leeftijdsBepalingenPanel;
	}

}  //  @jve:decl-index=0:visual-constraint="10,17"
